let { projectRootPath } = require("../../../util/index");
let { getNewApp } = require(`${projectRootPath}/app/index.js`);
let { verifyToken } = require(`${projectRootPath}/util/jwt/index.js`);
let {
  createUser,
  getUserByPagination,
  editUserByUuid,
  removeUserByUuid,
  getUserByAll,
} = require(`${projectRootPath}/service/user/index.js`);
let app = getNewApp();
let version = require(`${projectRootPath}/config/version/index.js`);
// 获取绕审状态
app.post("/get", (req, res) => {
  try {
    res.send({ data: version, code: 20000 });
  } catch (error) {
    res.send({ data: {}, message: error.message, code: 20001 });
  }
});

// 导出 app
module.exports = app;
